home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / N-P / NIFTY.sit / NIFTY / myCShell / AppleEvents.c < prev    next >
MacBinary  |  1991-12-17  |  3.6 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Dec 17 08:05:32 1991, modified Tue Dec 17 08:05:32 1991, creator Think C, type ASCII, 2998 bytes "AppleEvents.c" , at 0xc36 458 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 41 70 70 6c 65 45 | 76 65 6e 74 73 2e 63 00 |..AppleE|vents.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0b b6 00 | 00 01 ca a5 73 a6 9c a5 |........|....s...|
|00000060| 73 a6 9c 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |s.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0b ab 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 20 22 41 70 70 |********|**. "App|
|000000c0| 6c 65 45 76 65 6e 74 73 | 2e 63 22 0d 0d 20 62 79 |leEvents|.c".. by|
|000000d0| 20 4a 6f 68 6e 20 41 2e | 20 4c 6f 76 65 2c 20 49 | John A.| Love, I|
|000000e0| 49 49 20 5b 20 57 61 73 | 68 69 6e 67 74 6f 6e 20 |II [ Was|hington |
|000000f0| 41 70 70 6c 65 20 50 69 | 20 55 73 65 72 73 27 20 |Apple Pi| Users' |
|00000100| 47 72 6f 75 70 5d 0d 0d | 20 75 73 69 6e 67 20 53 |Group]..| using S|
|00000110| 79 6d 61 6e 74 65 63 27 | 73 20 22 54 48 49 4e 4b |ymantec'|s "THINK|
|00000120| 20 43 22 2c 20 76 20 35 | 2e 30 30 0d 20 2a 2a 2a | C", v 5|.00. ***|
|00000130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000160| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 0d 23 69 66 6e 64 65 |******/.|..#ifnde|
|00000170| 66 20 5f 5f 41 50 50 4c | 45 45 56 45 4e 54 53 5f |f __APPL|EEVENTS_|
|00000180| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 41 70 70 6c |_.#inclu|de <Appl|
|00000190| 65 45 76 65 6e 74 73 2e | 68 3e 0d 23 65 6e 64 69 |eEvents.|h>.#endi|
|000001a0| 66 0d 0d 23 69 66 6e 64 | 65 66 20 5f 5f 45 50 50 |f..#ifnd|ef __EPP|
|000001b0| 43 5f 5f 0d 23 69 6e 63 | 6c 75 64 65 20 3c 45 50 |C__.#inc|lude <EP|
|000001c0| 50 43 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |PC.h>.#e|ndif..#i|
|000001d0| 66 6e 64 65 66 20 5f 5f | 47 45 53 54 41 4c 54 45 |fndef __|GESTALTE|
|000001e0| 51 55 5f 5f 0d 23 69 6e | 63 6c 75 64 65 20 3c 47 |QU__.#in|clude <G|
|000001f0| 65 73 74 61 6c 74 45 71 | 75 2e 68 3e 0d 23 65 6e |estaltEq|u.h>.#en|
|00000200| 64 69 66 0d 0d 23 69 6e | 63 6c 75 64 65 20 22 70 |dif..#in|clude "p|
|00000210| 72 6f 74 6f 73 22 0d 0d | 23 69 6e 63 6c 75 64 65 |rotos"..|#include|
|00000220| 20 22 67 6c 6f 62 61 6c | 73 2e 68 22 0d 23 69 6e | "global|s.h".#in|
|00000230| 63 6c 75 64 65 20 22 65 | 78 74 65 72 6e 2e 68 22 |clude "e|xtern.h"|
|00000240| 0d 0d 0d 0d 0d 09 73 68 | 6f 72 74 09 5f 47 65 73 |......sh|ort._Ges|
|00000250| 74 61 6c 74 54 72 61 70 | 20 3d 20 30 78 41 31 41 |taltTrap| = 0xA1A|
|00000260| 44 3b 0d 09 6c 6f 6e 67 | 09 6d 79 46 65 61 74 75 |D;..long|.myFeatu|
|00000270| 72 65 3b 0d 0d 0d 42 6f | 6f 6c 65 61 6e 20 41 70 |re;...Bo|olean Ap|
|00000280| 70 6c 65 45 76 65 6e 74 | 73 41 63 74 69 76 65 20 |pleEvent|sActive |
|00000290| 28 76 6f 69 64 29 09 7b | 0d 2f 2a 20 44 6f 20 77 |(void).{|./* Do w|
|000002a0| 65 20 68 61 76 65 20 61 | 20 6d 61 63 68 69 6e 65 |e have a| machine|
|000002b0| 20 6f 6e 20 77 68 69 63 | 68 20 74 68 65 20 41 70 | on whic|h the Ap|
|000002c0| 70 6c 65 20 45 76 65 6e | 74 73 20 4d 61 6e 61 67 |ple Even|ts Manag|
|000002d0| 65 72 20 65 78 69 73 74 | 73 20 3f 3f 3f 20 2a 2f |er exist|s ??? */|
|000002e0| 0d 0d 09 69 66 20 28 54 | 72 61 70 41 76 61 69 6c |...if (T|rapAvail|
|000002f0| 61 62 6c 65 28 5f 47 65 | 73 74 61 6c 74 54 72 61 |able(_Ge|staltTra|
|00000300| 70 29 29 09 7b 0d 09 09 | 69 66 20 28 47 65 73 74 |p)).{...|if (Gest|
|00000310| 61 6c 74 28 67 65 73 74 | 61 6c 74 41 70 70 6c 65 |alt(gest|altApple|
|00000320| 45 76 65 6e 74 73 41 74 | 74 72 2c 20 26 6d 79 46 |EventsAt|tr, &myF|
|00000330| 65 61 74 75 72 65 29 20 | 3d 3d 20 6e 6f 45 72 72 |eature) |== noErr|
|00000340| 29 09 7b 0d 09 09 09 69 | 66 20 28 42 69 74 54 73 |).{....i|f (BitTs|
|00000350| 74 28 26 6d 79 46 65 61 | 74 75 72 65 2c 20 33 31 |t(&myFea|ture, 31|
|00000360| 20 2d 20 67 65 73 74 61 | 6c 74 41 70 70 6c 65 45 | - gesta|ltAppleE|
|00000370| 76 65 6e 74 73 50 72 65 | 73 65 6e 74 29 29 09 72 |ventsPre|sent)).r|
|00000380| 65 74 75 72 6e 28 74 72 | 75 65 29 3b 0d 09 09 09 |eturn(tr|ue);....|
|00000390| 65 6c 73 65 20 72 65 74 | 75 72 6e 28 66 61 6c 73 |else ret|urn(fals|
|000003a0| 65 29 3b 0d 09 09 7d 0d | 09 09 65 6c 73 65 20 72 |e);...}.|..else r|
|000003b0| 65 74 75 72 6e 28 66 61 | 6c 73 65 29 3b 0d 09 7d |eturn(fa|lse);..}|
|000003c0| 0d 09 65 6c 73 65 20 72 | 65 74 75 72 6e 28 66 61 |..else r|eturn(fa|
|000003d0| 6c 73 65 29 3b 0d 0d 7d | 09 2f 2a 20 41 70 70 6c |lse);..}|./* Appl|
|000003e0| 65 45 76 65 6e 74 73 41 | 63 74 69 76 65 20 2a 2f |eEventsA|ctive */|
|000003f0| 0d 0d 0d 0d 42 6f 6f 6c | 65 61 6e 20 50 50 43 54 |....Bool|ean PPCT|
|00000400| 6f 6f 6c 62 6f 78 41 63 | 74 69 76 65 20 28 76 6f |oolboxAc|tive (vo|
|00000410| 69 64 29 09 7b 0d 2f 2a | 20 44 6f 20 77 65 20 68 |id).{./*| Do we h|
|00000420| 61 76 65 20 61 20 6d 61 | 63 68 69 6e 65 20 6f 6e |ave a ma|chine on|
|00000430| 20 77 68 69 63 68 20 74 | 68 65 20 50 50 43 54 6f | which t|he PPCTo|
|00000440| 6f 6c 62 6f 78 20 65 78 | 69 73 74 73 20 3f 3f 3f |olbox ex|ists ???|
|00000450| 20 2a 2f 0d 0d 09 09 42 | 6f 6f 6c 65 61 6e 09 72 | */....B|oolean.r|
|00000460| 65 73 75 6c 74 3b 0d 0d | 0d 09 72 65 73 75 6c 74 |esult;..|..result|
|00000470| 20 3d 20 66 61 6c 73 65 | 3b 09 09 09 2f 2a 20 42 | = false|;.../* B|
|00000480| 65 20 70 65 73 73 69 6d | 69 73 74 69 63 20 2e 2e |e pessim|istic ..|
|00000490| 2e 20 73 65 65 20 69 66 | 20 49 20 63 61 72 65 20 |. see if| I care |
|000004a0| 21 21 20 2a 2f 0d 09 3b | 0d 09 69 66 20 28 54 72 |!! */..;|..if (Tr|
|000004b0| 61 70 41 76 61 69 6c 61 | 62 6c 65 28 5f 47 65 73 |apAvaila|ble(_Ges|
|000004c0| 74 61 6c 74 54 72 61 70 | 29 29 09 7b 0d 09 09 69 |taltTrap|)).{...i|
|000004d0| 66 20 28 47 65 73 74 61 | 6c 74 28 67 65 73 74 61 |f (Gesta|lt(gesta|
|000004e0| 6c 74 50 50 43 54 6f 6f | 6c 62 6f 78 41 74 74 72 |ltPPCToo|lboxAttr|
|000004f0| 2c 20 26 6d 79 46 65 61 | 74 75 72 65 29 20 3d 3d |, &myFea|ture) ==|
|00000500| 20 6e 6f 45 72 72 29 09 | 7b 0d 09 09 09 69 66 20 | noErr).|{....if |
|00000510| 28 42 69 74 54 73 74 28 | 26 6d 79 46 65 61 74 75 |(BitTst(|&myFeatu|
|00000520| 72 65 2c 20 33 31 20 2d | 20 67 65 73 74 61 6c 74 |re, 31 -| gestalt|
|00000530| 50 50 43 54 6f 6f 6c 62 | 6f 78 50 72 65 73 65 6e |PPCToolb|oxPresen|
|00000540| 74 29 29 09 72 65 73 75 | 6c 74 20 3d 20 74 72 75 |t)).resu|lt = tru|
|00000550| 65 3b 0d 09 09 7d 0d 09 | 7d 0d 0d 09 72 65 74 75 |e;...}..|}...retu|
|00000560| 72 6e 28 72 65 73 75 6c | 74 29 3b 0d 0d 7d 09 2f |rn(resul|t);..}./|
|00000570| 2a 20 50 50 43 54 6f 6f | 6c 62 6f 78 41 63 74 69 |* PPCToo|lboxActi|
|00000580| 76 65 20 2a 2f 0d 0d 0d | 0d 4f 53 45 72 72 20 49 |ve */...|.OSErr I|
|00000590| 6e 69 74 41 70 70 6c 65 | 45 76 65 6e 74 73 20 28 |nitApple|Events (|
|000005a0| 76 6f 69 64 29 09 7b 0d | 0d 0d 0d 7d 09 2f 2a 20 |void).{.|...}./* |
|000005b0| 49 6e 69 74 41 70 70 6c | 65 45 76 65 6e 74 73 20 |InitAppl|eEvents |
|000005c0| 2a 2f 0d 0d 0d 0d 4f 53 | 45 72 72 20 49 6e 69 74 |*/....OS|Err Init|
|000005d0| 50 50 43 54 6f 6f 6c 62 | 6f 78 20 28 76 6f 69 64 |PPCToolb|ox (void|
|000005e0| 29 09 7b 0d 0d 09 09 4f | 53 45 72 72 09 65 72 72 |).{....O|SErr.err|
|000005f0| 3b 0d 0d 0d 09 67 48 61 | 73 50 50 43 54 6f 6f 6c |;....gHa|sPPCTool|
|00000600| 62 6f 78 20 3d 20 50 50 | 43 54 6f 6f 6c 62 6f 78 |box = PP|CToolbox|
|00000610| 41 63 74 69 76 65 28 29 | 3b 0d 0d 09 69 66 20 28 |Active()|;...if (|
|00000620| 67 48 61 73 50 50 43 54 | 6f 6f 6c 62 6f 78 29 09 |gHasPPCT|oolbox).|
|00000630| 7b 0d 0d 09 09 69 66 20 | 28 28 6d 79 46 65 61 74 |{....if |((myFeat|
|00000640| 75 72 65 20 26 20 67 65 | 73 74 61 6c 74 50 50 43 |ure & ge|staltPPC|
|00000650| 53 75 70 70 6f 72 74 73 | 52 65 61 6c 54 69 6d 65 |Supports|RealTime|
|00000660| 29 20 3d 3d 20 30 29 09 | 7b 0d 09 09 09 65 72 72 |) == 0).|{....err|
|00000670| 20 3d 20 50 50 43 49 6e | 69 74 28 29 3b 0d 09 09 | = PPCIn|it();...|
|00000680| 09 69 66 20 28 65 72 72 | 20 3d 3d 20 6e 6f 45 72 |.if (err| == noEr|
|00000690| 72 29 09 65 72 72 20 3d | 20 47 65 73 74 61 6c 74 |r).err =| Gestalt|
|000006a0| 28 67 65 73 74 61 6c 74 | 50 50 43 54 6f 6f 6c 62 |(gestalt|PPCToolb|
|000006b0| 6f 78 41 74 74 72 2c 20 | 26 6d 79 46 65 61 74 75 |oxAttr, |&myFeatu|
|000006c0| 72 65 29 3b 0d 09 09 7d | 0d 09 09 65 6c 73 65 09 |re);...}|...else.|
|000006d0| 2f 2a 20 64 6f 65 73 20 | 4e 4f 54 20 6e 65 65 64 |/* does |NOT need|
|000006e0| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|000006f0| 2a 2f 09 65 72 72 20 3d | 20 6e 6f 45 72 72 3b 0d |*/.err =| noErr;.|
|00000700| 09 7d 0d 09 65 6c 73 65 | 09 65 72 72 20 3d 20 6e |.}..else|.err = n|
|00000710| 6f 50 50 43 54 6f 6f 6c | 62 6f 78 45 72 72 3b 0d |oPPCTool|boxErr;.|
|00000720| 0d 09 72 65 74 75 72 6e | 20 28 65 72 72 29 3b 0d |..return| (err);.|
|00000730| 0d 7d 09 2f 2a 20 49 6e | 69 74 50 50 43 54 6f 6f |.}./* In|itPPCToo|
|00000740| 6c 62 6f 78 20 2a 2f 0d | 0d 0d 0d 4f 53 45 72 72 |lbox */.|...OSErr|
|00000750| 09 41 63 63 65 70 74 48 | 4c 45 76 65 6e 74 20 28 |.AcceptH|LEvent (|
|00000760| 76 6f 69 64 29 09 7b 0d | 0d 09 09 4f 53 45 72 72 |void).{.|...OSErr|
|00000770| 09 09 09 65 72 72 3b 0d | 09 09 50 74 72 09 09 09 |...err;.|..Ptr...|
|00000780| 09 6d 79 42 75 66 66 3b | 0d 09 09 75 6e 73 69 67 |.myBuff;|...unsig|
|00000790| 6e 65 64 20 6c 6f 6e 67 | 09 6d 79 4c 65 6e 3b 0d |ned long|.myLen;.|
|000007a0| 09 09 54 61 72 67 65 74 | 49 44 09 09 74 68 65 43 |..Target|ID..theC|
|000007b0| 6c 69 65 6e 74 3b 0d 09 | 09 75 6e 73 69 67 6e 65 |lient;..|.unsigne|
|000007c0| 64 20 6c 6f 6e 67 09 63 | 6c 69 65 6e 74 52 65 66 |d long.c|lientRef|
|000007d0| 63 6f 6e 3b 0d 0d 0d 09 | 6d 79 4c 65 6e 20 3d 20 |con;....|myLen = |
|000007e0| 30 3b 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 53 |0; | /* S|
|000007f0| 74 61 72 74 20 77 69 74 | 68 20 7a 65 72 6f 20 74 |tart wit|h zero t|
|00000800| 6f 20 61 6c 6c 6f 77 20 | 5f 41 63 63 65 70 74 48 |o allow |_AcceptH|
|00000810| 69 67 68 4c 65 76 65 6c | 45 76 65 6e 74 20 2a 2f |ighLevel|Event */|
|00000820| 0d 09 6d 79 42 75 66 66 | 20 3d 20 6e 69 6c 3b 20 |..myBuff| = nil; |
|00000830| 20 20 20 20 20 20 2f 2a | 20 20 74 6f 20 64 65 74 | /*| to det|
|00000840| 65 72 6d 69 6e 65 20 74 | 68 65 20 73 69 7a 65 2e |ermine t|he size.|
|00000850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000860| 20 20 20 20 20 20 20 20 | 2a 2f 0d 0d 09 65 72 72 | |*/...err|
|00000870| 20 3d 20 41 63 63 65 70 | 74 48 69 67 68 4c 65 76 | = Accep|tHighLev|
|00000880| 65 6c 45 76 65 6e 74 28 | 26 74 68 65 43 6c 69 65 |elEvent(|&theClie|
|00000890| 6e 74 2c 20 26 63 6c 69 | 65 6e 74 52 65 66 63 6f |nt, &cli|entRefco|
|000008a0| 6e 2c 20 6d 79 42 75 66 | 66 2c 20 26 6d 79 4c 65 |n, myBuf|f, &myLe|
|000008b0| 6e 29 3b 0d 09 3b 0d 09 | 69 66 20 28 65 72 72 20 |n);..;..|if (err |
|000008c0| 3d 3d 20 62 75 66 66 65 | 72 49 73 53 6d 61 6c 6c |== buffe|rIsSmall|
|000008d0| 29 09 7b 0d 09 09 6d 79 | 42 75 66 66 20 3d 20 4e |).{...my|Buff = N|
|000008e0| 65 77 43 6c 65 61 72 50 | 74 72 28 6d 79 4c 65 6e |ewClearP|tr(myLen|
|000008f0| 29 3b 0d 09 09 65 72 72 | 20 3d 20 41 63 63 65 70 |);...err| = Accep|
|00000900| 74 48 69 67 68 4c 65 76 | 65 6c 45 76 65 6e 74 28 |tHighLev|elEvent(|
|00000910| 26 74 68 65 43 6c 69 65 | 6e 74 2c 20 26 63 6c 69 |&theClie|nt, &cli|
|00000920| 65 6e 74 52 65 66 63 6f | 6e 2c 20 6d 79 42 75 66 |entRefco|n, myBuf|
|00000930| 66 2c 20 26 6d 79 4c 65 | 6e 29 3b 0d 09 7d 0d 0d |f, &myLe|n);..}..|
|00000940| 09 72 65 74 75 72 6e 20 | 28 65 72 72 29 3b 0d 0d |.return |(err);..|
|00000950| 7d 09 2f 2a 20 41 63 63 | 65 70 74 48 4c 45 76 65 |}./* Acc|eptHLEve|
|00000960| 6e 74 20 2a 2f 0d 0d 0d | 0d 4f 53 45 72 72 09 4d |nt */...|.OSErr.M|
|00000970| 69 73 73 65 64 41 6e 79 | 50 61 72 61 6d 65 74 65 |issedAny|Paramete|
|00000980| 72 73 20 28 45 76 65 6e | 74 52 65 63 6f 72 64 20 |rs (Even|tRecord |
|00000990| 2a 65 76 65 6e 74 2c 20 | 41 70 70 6c 65 45 76 65 |*event, |AppleEve|
|000009a0| 6e 74 20 2a 74 68 65 41 | 45 45 76 65 6e 74 29 09 |nt *theA|EEvent).|
|000009b0| 7b 0d 0d 09 09 4f 53 45 | 72 72 09 09 65 72 72 3b |{....OSE|rr..err;|
|000009c0| 0d 09 09 44 65 73 63 54 | 79 70 65 09 69 67 6e 6f |...DescT|ype.igno|
|000009d0| 72 65 64 41 63 74 75 61 | 6c 54 79 70 65 3b 0d 09 |redActua|lType;..|
|000009e0| 09 41 45 4b 65 79 77 6f | 72 64 09 6d 69 73 73 65 |.AEKeywo|rd.misse|
|000009f0| 64 4b 65 79 77 6f 72 64 | 3b 0d 09 09 53 69 7a 65 |dKeyword|;...Size|
|00000a00| 09 09 69 67 6e 6f 72 65 | 64 41 63 74 75 61 6c 53 |..ignore|dActualS|
|00000a10| 69 7a 65 3b 0d 0d 0d 09 | 65 72 72 20 3d 20 41 45 |ize;....|err = AE|
|00000a20| 47 65 74 41 74 74 72 69 | 62 75 74 65 50 74 72 28 |GetAttri|butePtr(|
|00000a30| 74 68 65 41 45 45 76 65 | 6e 74 2c 0d 09 09 09 09 |theAEEve|nt,.....|
|00000a40| 09 09 09 6b 65 79 4d 69 | 73 73 65 64 4b 65 79 77 |...keyMi|ssedKeyw|
|00000a50| 6f 72 64 41 74 74 72 2c | 0d 09 09 09 09 09 09 09 |ordAttr,|........|
|00000a60| 74 79 70 65 4b 65 79 77 | 6f 72 64 2c 0d 09 09 09 |typeKeyw|ord,....|
|00000a70| 09 09 09 09 26 69 67 6e | 6f 72 65 64 41 63 74 75 |....&ign|oredActu|
|00000a80| 61 6c 54 79 70 65 2c 0d | 09 09 09 09 09 09 09 28 |alType,.|.......(|
|00000a90| 50 74 72 29 28 26 6d 69 | 73 73 65 64 4b 65 79 77 |Ptr)(&mi|ssedKeyw|
|00000aa0| 6f 72 64 29 2c 0d 09 09 | 09 09 09 09 09 73 69 7a |ord),...|.....siz|
|00000ab0| 65 6f 66 28 6d 69 73 73 | 65 64 4b 65 79 77 6f 72 |eof(miss|edKeywor|
|00000ac0| 64 29 2c 0d 09 09 09 09 | 09 09 09 26 69 67 6e 6f |d),.....|...&igno|
|00000ad0| 72 65 64 41 63 74 75 61 | 6c 53 69 7a 65 29 3b 0d |redActua|lSize);.|
|00000ae0| 0d 09 69 66 20 28 65 72 | 72 20 3d 3d 20 6e 6f 45 |..if (er|r == noE|
|00000af0| 72 72 29 09 7b 09 09 2f | 2a 20 57 65 20 66 6f 75 |rr).{../|* We fou|
|00000b00| 6e 64 20 73 6f 6d 65 20 | 75 6e 75 73 65 64 20 70 |nd some |unused p|
|00000b10| 61 72 61 6d 65 74 65 72 | 73 2e 20 2a 2f 0d 09 09 |arameter|s. */...|
|00000b20| 65 76 65 6e 74 2d 3e 6d | 65 73 73 61 67 65 20 3d |event->m|essage =|
|00000b30| 20 2a 28 6c 6f 6e 67 20 | 2a 29 20 28 26 69 67 6e | *(long |*) (&ign|
|00000b40| 6f 72 65 64 41 63 74 75 | 61 6c 54 79 70 65 29 3b |oredActu|alType);|
|00000b50| 0d 09 09 65 76 65 6e 74 | 2d 3e 77 68 65 72 65 20 |...event|->where |
|00000b60| 3d 20 2a 28 50 6f 69 6e | 74 20 2a 29 20 28 26 6d |= *(Poin|t *) (&m|
|00000b70| 69 73 73 65 64 4b 65 79 | 77 6f 72 64 29 3b 0d 09 |issedKey|word);..|
|00000b80| 09 65 72 72 20 3d 20 65 | 72 72 41 45 45 76 65 6e |.err = e|rrAEEven|
|00000b90| 74 4e 6f 74 48 61 6e 64 | 6c 65 64 3b 0d 09 7d 0d |tNotHand|led;..}.|
|00000ba0| 09 65 6c 73 65 20 69 66 | 20 28 65 72 72 20 3d 3d |.else if| (err ==|
|00000bb0| 20 65 72 72 41 45 44 65 | 73 63 4e 6f 74 46 6f 75 | errAEDe|scNotFou|
|00000bc0| 6e 64 29 09 65 72 72 20 | 3d 20 6e 6f 45 72 72 3b |nd).err |= noErr;|
|00000bd0| 09 2f 2a 20 4e 6f 20 6d | 6f 72 65 2e 20 2a 2f 0d |./* No m|ore. */.|
|00000be0| 0d 09 72 65 74 75 72 6e | 20 28 65 72 72 29 3b 0d |..return| (err);.|
|00000bf0| 0d 7d 09 2f 2a 20 4d 69 | 73 73 65 64 41 6e 79 50 |.}./* Mi|ssedAnyP|
|00000c00| 61 72 61 6d 65 74 65 72 | 73 20 2a 2f 0d 0d 0d 0d |arameter|s */....|
|00000c10| 0d 2f 2a 20 20 7b 20 65 | 6e 64 20 66 69 6c 65 20 |./* { e|nd file |
|00000c20| 22 41 70 70 6c 65 45 76 | 65 6e 74 73 2e 63 22 20 |"AppleEv|ents.c" |
|00000c30| 7d 20 20 2a 2f 0d 00 00 | 00 00 00 00 00 00 00 00 |} */...|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c80| 00 00 01 00 00 00 01 98 | 00 00 00 98 00 00 00 32 |........|.......2|
|00000c90| 00 00 b4 00 bb 00 c8 00 | cf 88 02 74 6f 00 00 00 |........|...to...|
|00000ca0| 00 00 03 00 44 00 15 00 | 9c 88 0d 46 69 6e 64 20 |....D...|...Find |
|00000cb0| 0d 41 70 70 6c 65 45 76 | 65 6e 74 73 2e 63 02 00 |.AppleEv|ents.c..|
|00000cc0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000cd0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 a9 80 1b c6 00 00 | 00 00 00 00 01 ca 4c 00 |........|......L.|
|00000d00| ef 01 52 80 00 00 00 00 | 00 00 bd 01 58 00 cf 01 |..R.....|....X...|
|00000d10| 98 04 05 57 68 65 72 65 | 00 00 00 00 00 00 ef 01 |...Where|........|
|00000d20| 4c 01 02 01 52 80 00 00 | 00 00 00 00 1e 00 5c 00 |L...R...|......\.|
|00000d30| 2e 01 1c 80 00 00 00 00 | 00 00 b6 01 4c 00 c9 01 |........|....L...|
|00000d40| 52 80 00 00 00 00 00 00 | cc 00 58 00 ed 00 e7 80 |R.......|..X.....|
|00000d50| 00 00 00 00 00 00 1b 01 | 52 00 9b 01 e3 00 00 00 |........|R.......|
|00000d60| 00 00 74 00 04 00 00 00 | 00 00 4c 00 27 00 5e 00 |..t.....|..L.'.^.|
|00000d70| 6d 04 06 43 72 65 61 74 | 65 00 00 00 00 00 4c 00 |m..Creat|e.....L.|
|00000d80| 00 00 00 94 00 00 00 00 | 00 00 01 87 00 00 01 87 |........|........|
|00000d90| 00 01 00 00 00 01 00 56 | 00 00 00 00 00 01 00 00 |.......V|........|
|00000da0| 00 00 ff ff ff ff ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 ff ff ff ff | ff ff ff ff ff ff ff ff |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 ff ff ff ff |........|........|
|00000dd0| ff ff 00 00 00 00 00 00 | 00 00 00 00 00 00 00 5c |........|.......\|
|00000de0| 00 34 01 d8 02 78 00 00 | 00 00 00 00 00 00 00 00 |.4...x..|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 98 |........|........|
|00000e20| 00 00 00 98 00 00 00 32 | 00 6f 29 c0 08 16 00 00 |.......2|.o).....|
|00000e30| 00 1c 00 32 00 00 45 50 | 4f 53 00 00 00 0a 03 ed |...2..EP|OS......|
|00000e40| ff ff 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+